package com.motong.gongdan.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
    * 物料清单关系表
    */
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="物料清单关系表")
@Accessors(chain = true)
@Data
@TableName(value = "bom_info")
public class BomInfo  extends PublicPo implements Serializable  {
    /**
     * 物料清单id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="物料清单id")
    private Long id;

    /**
     * 父产品id(product表id)

     */
    @TableField(value = "parent_product_id")
    @ApiModelProperty(value="父产品id(product表id),")
    private Integer parentProductId;

    /**
     * 子产品id(product表id)
     */
    @TableField(value = "child_product_id")
    @ApiModelProperty(value="子产品id(product表id)")
    private Integer childProductId;

    /**
     * 单位产品用量
     */
    @TableField(value = "unit_usage")
    @ApiModelProperty(value="单位产品用量")
    private BigDecimal unitUsage;

    /**
     * 备注
     */
    @TableField(value = "remark",updateStrategy = FieldStrategy.NOT_NULL)
    @ApiModelProperty(value="备注")
    private String remark;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 创建人(user表id)
     */
    @TableField(value = "create_user")
    @ApiModelProperty(value="创建人(user表id)")
    private Integer createUser;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value="更新时间")
    private Date updateTime;

    /**
     * 更新人(user表id)
     */
    @TableField(value = "update_user")
    @ApiModelProperty(value="更新人(user表id)")
    private Integer updateUser;

    private static final long serialVersionUID = 1L;
}